package ch9;

import java.util.Scanner;

public class Zxf10 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入数组数据：");
        int[] a = new int[10];
        int b = 0;
        for (int i = 0; i < a.length; i++) {
            a[i] = in.nextInt();
            b = b + a[i];
        }
        int c = b / a.length;
        int j = 0;
        for (j = 0; j < a.length; j++) {
            if (a[j] > c) {
                // System.out.println(a[j]);
            } else {
                continue;
            }
            System.out.println(a[j] + "比平均值：" + c + "大");
        }

    }
}
